package com.javabi.boardgame.game.draughts.piece;

import com.javabi.boardgame.game.draughts.DraughtsColor;
import com.javabi.boardgame.model.IPiece;

public class DraughtsPiece implements IPiece {

	private final DraughtsColor color;
	private final PieceType type;

	public DraughtsPiece(DraughtsColor color, PieceType type) {
		this.color = color;
		this.type = type;
	}

	public DraughtsColor getColor() {
		return color;
	}

	public PieceType getType() {
		return type;
	}

	@Override
	public String getName() {
		return color + "_" + type;
	}

	@Override
	public String toString() {
		return getName();
	}

}
